package edu.cmu.cs.stage3.alice.core.behavior;

import edu.cmu.cs.stage3.alice.core.property.BooleanProperty;

public class ConditionalBehavior extends AbstractConditionalBehavior {
	private static Class[] s_supportedCoercionClasses = { ConditionalTriggerBehavior.class };
	//Rem @Override
	public Class[] getSupportedCoercionClasses() {
		return s_supportedCoercionClasses;
	}
	public final BooleanProperty condition = new BooleanProperty( this, "condition", null );
	//Rem @Override
	public void preSchedule( double t ) {
		super.preSchedule( t );
		set( condition.booleanValue( false ) );
	}
	//Rem @Override
	protected void internalSchedule( double t, double dt ) {
		super.internalSchedule( t, dt );
	}
}
